# Contributor: Daniele Debernardi <drebrez@gmail.com>
# Maintainer: Daniele Debernardi <drebrez@gmail.com>
pkgname=eolie
pkgver=0.9.101
pkgrel=2
_translations=d5aac9503b4af24e3df89f531305cf9a70e26549
pkgdesc="Web browser for GNOME"
url="https://gitlab.gnome.org/World/eolie"
arch="noarch !riscv64 !s390x" # blocked by libhandy1/gnome-settings-daemon
license="GPL-3.0-or-later"
depends="
	gnome-settings-daemon
	gtkspell3
	libhandy1
	py3-cairo
	py3-gobject3
	python3
	webkit2gtk
	"
makedepends="
	glib-dev
	gobject-introspection-dev
	gtk+3.0-dev
	meson
	"
checkdepends="desktop-file-utils appstream-glib"
subpackages="$pkgname-lang"
source="https://gitlab.gnome.org/World/eolie/-/archive/$pkgver/eolie-$pkgver.tar.gz
	https://gitlab.gnome.org/gnumdk/eolie-po/-/archive/$_translations/eolie-po-$_translations.tar.gz
	dont-require-py3-gettext-support.patch
	"

prepare() {
	default_prepare
	mv "$srcdir"/eolie-po-$_translations/* "$builddir"/subprojects/po
}

build() {
	abuild-meson . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
7c17020cb67fa2a0782669c39fc39f9e11e74023029a945ab61808fd426235f897846a6becbd3cf75d2ff042ec945cd65284548ef39d0d24e0f306efab7850b2  eolie-0.9.101.tar.gz
180107420ecb076a47f7ab6024ffdfa743a8712b7711e20c1b8befe36cc8373172902f14d00e870b05bbe5882177a0bdb81274c7fb6b49d65c7a2b1a3f8b46c8  eolie-po-d5aac9503b4af24e3df89f531305cf9a70e26549.tar.gz
78f62663dd7150805dcb6086b5dfc5f1a9fff367dfb7cad662ca8fc2dcbc08fd3633f58d6ecbe2e4f368ba722c31783fcf9c336ffefa0efc670906d15878bbf9  dont-require-py3-gettext-support.patch
"
